package com.team2.outpatient_sys.pojo;

import java.util.List;

/**
 * 部门信息 携带 当前部门下所有的医生的集合
 */
public class DepartmentAndDoctors {
    // 科室id
    private Integer id;
    // 科室名
    private String name;
    // 科室前缀
    private String prefix;

    //当前科室下的所有医生的集合
    private List<Doctor> doctors;


    public DepartmentAndDoctors() {
    }

    public DepartmentAndDoctors(Integer id, String name, String prefix, List<Doctor> doctors) {
        this.id = id;
        this.name = name;
        this.prefix = prefix;
        this.doctors = doctors;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public List<Doctor> getDoctors() {
        return doctors;
    }

    public void setDoctors(List<Doctor> doctors) {
        this.doctors = doctors;
    }

    @Override
    public String toString() {
        return "DepartmentAndDoctors{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", prefix='" + prefix + '\'' +
                ", doctors=" + doctors +
                '}';
    }
}
